<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title><ui:insert name="titulo">Sistema de Pedidos de Venda</ui:insert></title>
	<h:outputStylesheet library="css" name="sistema.css" />
	<h:outputScript library="js"  name="jquery.maskMoney.js"/>
</h:head>

<h:body>

	<p:ajaxStatus styleClass="ajax-status" onsuccess="configurarMoeda()">
		<f:facet name="start">
			<h:graphicImage library="images" name="loading.gif" />
		</f:facet>

		<f:facet name="complete">
			<h:outputLabel value="" />
		</f:facet>
	</p:ajaxStatus>
	<header>


	<div style="float: left;">

		<span
			style="float: left; height: 30px; line-height: 30px; margin-right: 60px">
			Olá #{seguranca.nomeUsuario} </span>
			
		<h:form style="display:inline-block">
			
			<p:menubar styleClass="menu-sistema">
				<p:submenu label="Cadastros">
					<p:menuitem value="Gestores" outcome="/gestores/cadastroGestor" />
					<p:menuitem value="Empresas" outcome="/empresas/cadastroEmpresa" />
					<p:menuitem value="Empenhos" outcome="/empenhos/cadastroEmpenho" />
					<p:menuitem value="Inventarios" outcome="/inventarioSetor/pesquisaInventarioSetor" />
					<p:menuitem value="Materiais" outcome="/material/cadastroMaterial" />		
					<p:menuitem value="Grupo de Usuário" outcome="/grupoUsuarios/cadastroGrupo" />		
					<p:menuitem value="Usuário" outcome="/usuarios/cadastroUsuario" />		
					
				</p:submenu>
				<p:submenu label="Relatórios">
					<p:menuitem value="Empenho" outcome="/relatorios/relatorioEmpenho" />		
					<p:menuitem value="Grupo" outcome="/relatorios/relatorioGrupo" />		
					<p:menuitem value="Setor" outcome="/relatorios/relatorioSetor" />		
				</p:submenu>
					<p:menuitem value="Sair" url="/j_spring_security_logout"/>
			</p:menubar>
		</h:form>
	</div>

	<div style="clear: both"></div>
	</header>

	<div id="conteudo">
		<ui:insert name="corpo" />
	</div>

	<p:separator style="margin-top: 20px" />

	<footer>Sistema Gerenciador de Patrimonio- IFRR / Campus Novo Paraíso

		<div style="float: right"  >
			<h:graphicImage library="images" name="topo01.jpg" />
		</div>
		
		<div style="float: left"  >
			<h:graphicImage library="images" name="logo-ifrr.jpg" />
		</div>
		
	</footer>
	
	<script>
		function configurarMoeda(){
				$(".moeda").maskMoney({ decimal: ",", thousands: ".", allowZero: true });				
			}

		$(document).ready(function() {
				configurarMoeda();
			});
	</script>
	
	<script>
	jQuery(function($){
	       $("#dataCompra").mask("99/99/9999");       
	});
	</script>
	
</h:body>

</html>